#include"MyRBTree.h"
using namespace MYSPACE;
void text()
{
  RBTree<int,int> rb;
  //rb.insert(std::make_pair(1,1));
  for(int i = 0;i<10000;i++)
  {
    rb.insert(std::make_pair(rand(),i));
  }
  
  rb.print();
  if(rb.IsRBTree())
  {
    std::cout << "is red-black_tree" << std::endl;
  }
  else{
    std::cout << "is not" << std::endl;
  }

}
int main()
{
  srand((long long)time(0));
  text();
  return 0;
}
